//
//  AirportPin.swift
//  CitySearch
//
//  Created by guotonglin on 2020/6/10.
//  Copyright © 2020 guotonglin. All rights reserved.
//  相关信息关联到Map上的某个location

import Foundation
import MapKit


class AirportPin: NSObject, MKAnnotation {
    
    var title: String?
    var subTitle: String?
    var coordinate: CLLocationCoordinate2D

    init(name: String,
         city: String = "",
         coordinate: CLLocationCoordinate2D) {
        self.title = name
        self.subTitle = city
        self.coordinate = coordinate
    }
}
